package com.linkallcloud.core.dto;

import java.io.Serializable;

import com.linkallcloud.core.exception.Exceptions;

public class CheckResult implements Serializable {
    private static final long serialVersionUID = -735933538449656889L;

    /**
     * 返回码，默认成功=0，
     */
    private String code;

    /**
     * 错误信息
     */
    private String message;

    /**
     * 返回结果实体
     */
    private Object result;

    public CheckResult() {
        super();
        this.code = Exceptions.CODE_SUCCESS;
    }

    public CheckResult(Object result) {
        this();
        this.result = result;
    }

    public CheckResult(String code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

}
